import React from 'react';
import { hashHistory, Router, Route, IndexRoute } from 'react-router';
import Main from '../layout/main';
import Index from '../pages/index';
import BlessFriends from '../pages/BlessFriends';
import Message from '../pages/Message';
import Badge from '../pages/Badge';
import ChangeImg from '../pages/ChangeImg';
import QueryUserinfo from '../pages/QueryUserinfo';
import Fandom from '../pages/Fandom';
import Welfare from '../pages/Welfare';
import Test from '../pages/Test';

function RouterConfig() {
  return (
    <Router history={hashHistory}>
      <Route path="/" component={Main}>
        <IndexRoute component={Index} />
        <Route path="index" component={Index} />
        <Route path="bless-friends" component={BlessFriends} />
        <Route path="test" component={Test} />
        <Route path="message" component={Message} />
        <Route path="xixi" component={Badge} />
        <Route path="change-img" component={ChangeImg} />
        <Route path="query-userinfo" component={QueryUserinfo} />
        <Route path="fandom" component={Fandom} />
        <Route path="welfare" component={Welfare} />
      </Route>
    </Router>
  );
}

export default RouterConfig;
